package Demo1;

/*
 *Description:
 *User:laoHu
 *Created with Intellij IDEA 2025
 *Data:2025.05.00
 *Time:00:00
 */
public class Dog extends Animal {

    public Dog(String name,int age){

        super(name,age);
    }
    public void bark()
    {
        System.out.println(this.name + "正在汪汪汪....");
    }

    public Dog eat(){
        System.out.println(this.name + "正在吃狗粮....");
        return null;
    }

     public void sleep(){
        super.sleep();
        System.out.println(this.name + "正在睡觉");
    }

    public void wolk(){
        System.out.println(this.name + "正在散步");
    }
}
